package com.heima.search.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.dtos.UserSearchDto;
import com.heima.model.search.pojos.ApUserSearch;

/**
 * @author feng js
 */
public interface ApUserSearchService extends IService<ApUserSearch> {

    /**
     * 保存用户搜索记录
     * @param searchWords
     * @param equipmentId
     * @return
     */
    void saveUserSearch(String searchWords ,Integer equipmentId);

    /**
     * 查询搜索记录
     * @param dto
     * @return
     */
    ResponseResult findUserSearch(UserSearchDto dto);

    /**
     * 删除搜索记录
     * @param dto
     * @return
     */
    ResponseResult delUserSearch(UserSearchDto dto);

}
